#ifndef FPLAYER_FFMPEGAACDECODER_H
#define FPLAYER_FFMPEGAACDECODER_H


#include "FFMpegDecoder.h"

/**
 * author: x-fan
 * date: 2024/1/9
 * desc: FFMpeg 使用音频解码器(AAC)
 */
class FFMpegAACDecoder : public FFMpegDecoder {

public:
  using FFMpegDecoder::FFMpegDecoder;

  virtual ~FFMpegAACDecoder() = default;

  const AVCodec * findCodec(DecoderParam &decoderParam) override;

  int32_t initContextParam(AVCodecContext *pCodecCtx, DecoderParam &decoderParam) override;

  MediaType getMediaType() override;

  const char *getClassName() override;

  void toString() override;
};


#endif //FPLAYER_FFMPEGAACDECODER_H
